import request from './request'

export const getOrderList = () => {
  const token = localStorage.getItem('token')
  if (token) {
    return request({
      url: 'api/order',
      method: 'get'
    }).then(res => {
      return res
    })
  } else {
    console.log('未登录，无法获取订单信息')
  }
}
